﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Workflows.Components.ETL
{
	/// <summary>
	/// 
	/// </summary>
	public enum SpecialDelimiter
	{
		/// <summary>
		/// 
		/// </summary>
		Tab = 0,
		/// <summary>
		/// 
		/// </summary>
		Space = 1,
		/// <summary>
		/// 
		/// </summary>
		VerticalBar=2,
		/// <summary>
		/// 
		/// </summary>
		Comma=3,
		/// <summary>
		/// 
		/// </summary>
		SemiColon=4,
		/// <summary>
		/// 
		/// </summary>
		Other=5
	}

	/// <summary>
	/// 
	/// </summary>
	[Serializable]
	public class Delimiter
	{
		private string _DelimiterPattern;
		/// <summary></summary>
		public string DelimiterPattern
		{
			get
			{
				return this._DelimiterPattern;
			}
			set
			{
				this._DelimiterPattern = value;
			}
		}

		private SpecialDelimiter _SpecialDelimiter;
		/// <summary></summary>
		public SpecialDelimiter SpecialDelimiter
		{
			get
			{
				return this._SpecialDelimiter;
			}
			set
			{
				this._SpecialDelimiter = value;
			}
		}

		/// <summary>
		/// 
		/// </summary>
		/// <param name="delimiter"></param>
		/// <param name="pattern"></param>
		public Delimiter(SpecialDelimiter delimiter, string pattern)
		{
			this._SpecialDelimiter = delimiter;
			this._DelimiterPattern = pattern;
		}
	}
}
